package com.onlinemovies.entity;

import java.io.Serializable;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name="ShowDetails")
public class ShowDetails implements Serializable {

	
		  
    private static final long serialVersionUID = 1L;
     
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="id")
    private long id;
   
    @Column(name="showfrom")
    private String showfrom;
    
    @Column(name="showto")
    private String showto;
    
    @Column(name="showtime")
    private String showtime;
    
    @Column(name="noofseat")
    private String noofseat;
    
    @Column(name="price")
    private String price;
    
    

	public String getNoofseat() {
		return noofseat;
	}




	public void setNoofseat(String noofseat) {
		this.noofseat = noofseat;
	}




	public String getPrice() {
		return price;
	}




	public void setPrice(String price) {
		this.price = price;
	}




	public String getShowtime() {
		return showtime;
	}




	public void setShowtime(String showtime) {
		this.showtime = showtime;
	}

	@JoinColumn(name = "movieid", referencedColumnName = "id")
    @ManyToOne
    private MovieDetails movieDetails;

	public long getId() {
		return id;
	}

	


	public String getShowfrom() {
		return showfrom;
	}

	public void setShowfrom(String showfrom) {
		this.showfrom = showfrom;
	}

	public String getShowto() {
		return showto;
	}

	public void setShowto(String showto) {
		this.showto = showto;
	}

	public void setId(long id) {
		this.id = id;
	}



	public MovieDetails getMovieDetails() {
		return movieDetails;
	}

	public void setMovieDetails(MovieDetails movieDetails) {
		this.movieDetails = movieDetails;
	}


}
